package com.lx.chong.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Rest返回对象枚举类
 *
 * @author: chong
 * @date: 2018/1/16
 */
@Getter
@AllArgsConstructor
public enum ResultEnum implements CodeEnum {

    SUCCESS(0, "成功"),

    PARAM_ERROR(1, "参数不正确"),

    LOGIN_FAIL(2, "登录失败, 登录信息不正确"),

    REDIS_RECEIVE_ERROR(3, "Redis订阅异常"),

    OPERATION_ERROR(4,"操作异常");

    private Integer code;

    private String message;
}
